/*
 * By: Werner Schuster (murphee)
 * 
 * Copyright (c) 2005-2006 Werner Schuster (murphee)
 * 
 * This file is part of the EclipseShell project. EclipseShell is subject 
 * to the Eclipse Public License (EPL) available at
 * http://www.eclipse.org/org/documents/epl-v10.php
 * or in the file /epl-v10.html in the source for other info
 * see the /eclipseshell.license file
 */
package net.sf.eclipseshell.extensions;

import java.util.List;

import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IType;

/**
 * Java environment specific to this project, ie. classpath settings,... 
 *  
 * 
 * @author murphee
 *
 */
// TODO: rethink the names for this
public interface IJavaEnvironment {
	
	public String getJavaDoc(IMethod currMethod) ;

	public String translateToJdt(Class returnType) ;
	public String getJavaDoc(IType type) ;

	public IType getJdtType(Class currClass) ;
	public IType getJdtType(String currClass) ;
	/**
	 * 
	 * @param offset
	 * @param retValueList
	 * @param prefix
	 * @param typeDescriptor
	 * @param lastElement the filter, ie. only show methods that begin with lastElement; 
	 * @return
	 */
	public String addMethodCompletionForClass(int offset, List retValueList, String prefix, String typeDescriptor, String lastElement) ;


}
